package com.qianniu.napi.admin.service;

import com.qianniu.napi.admin.entity.Goods;
import com.baomidou.mybatisplus.service.IService;
import com.qianniu.napi.admin.entity.Order;
import com.qianniu.napi.admin.entity.Store;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品信息 服务类
 * </p>
 *
 * @author chenxuebin
 * @since 2018-06-23
 */
public interface IGoodsService extends IService<Goods> {

    List<Goods> getGoodsByMap(Map map);

    public List<Goods> getYxgoodsList(int pageIndex,int pageSize,Double lat,Double lng,Long mpid,String hytype,String yxtype,String shicode,String status,String orderby);

    public List<Goods> getYxgoodslmList(int pageIndex,int pageSize,Double lat,Double lng,Long mpid,String hytype,String yxtype,String shicode,String orderby);

    public List<Goods> getYxgoodsList2(int pageIndex,int pageSize,Double lat,Double lng,Long mpid,String hytype,String yxtype,String shicode,String orderby);

    public List<Order> calcLastpiao(List<Order> list);

    public Map<String, Integer> calcLastpiaoMap(List<Order> list);

    public List<Order> setLastpiaoMap(List<Order> list, Map<String, Integer> map);

    public Map<String, Integer> calcPaiming(List<Order> list);

    public List<Order> setPaiming(List<Order> list, Map<String, Integer> map);

    public Map<String, Order> setlppmMap(List<Order> list);

    public String replaceXing(String phone);

    public String replaceMiddle(String name);

    public List<Goods> getYxbkgoodsList(int pageIndex,int pageSize,Double lat,Double lng,Long mpid,String hytype,String yxtype,String shicode,String orderby);

    public List<Goods> getYxgoodsList3(int pageIndex,int pageSize,Double lat,Double lng,Long mpid,String hytype,String yxtype,String shicode,String status,String orderby);

}
